Optimal. Leaf size=76 \[ -\frac {(a d+b c)^3 \log (a-b x)}{2 a b^4}+\frac {(b c-a d)^3 \log (a+b x)}{2 a b^4}-\frac {3 c d^2 x}{b^2}-\frac {d^3 x^2}{2 b^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {72} \begin {gather*} -\frac {(a d+b c)^3 \log (a-b x)}{2 a b^4}+\frac {(b c-a d)^3 \log (a+b x)}{2 a b^4}-\frac {3 c d^2 x}{b^2}-\frac {d^3 x^2}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 72
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{(a-b x) (a+b x)} \, dx &=\int \left (-\frac {3 c d^2}{b^2}-\frac {d^3 x}{b^2}+\frac {(b c+a d)^3}{2 a b^3 (a-b x)}-\frac {(-b c+a d)^3}{2 a b^3 (a+b x)}\right ) \, dx\\ &=-\frac {3 c d^2 x}{b^2}-\frac {d^3 x^2}{2 b^2}-\frac {(b c+a d)^3 \log (a-b x)}{2 a b^4}+\frac {(b c-a d)^3 \log (a+b x)}{2 a b^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 62, normalized size = 0.82 \begin {gather*} -\frac {a b^2 d^2 x (6 c+d x)+(b c-a d)^3 (-\log (a+b x))+(a d+b c)^3 \log (a-b x)}{2 a b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(c+d x)^3}{(a-b x) (a+b x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.67, size = 119, normalized size = 1.57 \begin {gather*} -\frac {a b^{2} d^{3} x^{2} + 6 \, a b^{2} c d^{2} x - {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (b x + a\right ) + {\left (b^{3} c^{3} + 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} + a^{3} d^{3}\right )} \log \left (b x - a\right )}{2 \, a b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.88, size = 130, normalized size = 1.71 \begin {gather*} -\frac {b^{2} d^{3} x^{2} + 6 \, b^{2} c d^{2} x}{2 \, b^{4}} + \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left ({\left | b x + a \right |}\right )}{2 \, a b^{4}} - \frac {{\left (b^{3} c^{3} + 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} + a^{3} d^{3}\right )} \log \left ({\left | b x - a \right |}\right )}{2 \, a b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 161, normalized size = 2.12 \begin {gather*} -\frac {d^{3} x^{2}}{2 b^{2}}-\frac {a^{2} d^{3} \ln \left (b x -a \right )}{2 b^{4}}-\frac {a^{2} d^{3} \ln \left (b x +a \right )}{2 b^{4}}-\frac {3 a c \,d^{2} \ln \left (b x -a \right )}{2 b^{3}}+\frac {3 a c \,d^{2} \ln \left (b x +a \right )}{2 b^{3}}-\frac {c^{3} \ln \left (b x -a \right )}{2 a b}+\frac {c^{3} \ln \left (b x +a \right )}{2 a b}-\frac {3 c^{2} d \ln \left (b x -a \right )}{2 b^{2}}-\frac {3 c^{2} d \ln \left (b x +a \right )}{2 b^{2}}-\frac {3 c \,d^{2} x}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.53, size = 122, normalized size = 1.61 \begin {gather*} -\frac {d^{3} x^{2} + 6 \, c d^{2} x}{2 \, b^{2}} + \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (b x + a\right )}{2 \, a b^{4}} - \frac {{\left (b^{3} c^{3} + 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} + a^{3} d^{3}\right )} \log \left (b x - a\right )}{2 \, a b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.18, size = 122, normalized size = 1.61 \begin {gather*} -\frac {d^3\,x^2}{2\,b^2}-\frac {\ln \left (a+b\,x\right )\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}{2\,a\,b^4}-\frac {\ln \left (a-b\,x\right )\,\left (a^3\,d^3+3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d+b^3\,c^3\right )}{2\,a\,b^4}-\frac {3\,c\,d^2\,x}{b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.97, size = 163, normalized size = 2.14 \begin {gather*} - \frac {3 c d^{2} x}{b^{2}} - \frac {d^{3} x^{2}}{2 b^{2}} - \frac {\left (a d - b c\right )^{3} \log {\left (x + \frac {a^{4} d^{3} + 3 a^{2} b^{2} c^{2} d - a \left (a d - b c\right )^{3}}{3 a^{2} b^{2} c d^{2} + b^{4} c^{3}} \right )}}{2 a b^{4}} - \frac {\left (a d + b c\right )^{3} \log {\left (x + \frac {a^{4} d^{3} + 3 a^{2} b^{2} c^{2} d - a \left (a d + b c\right )^{3}}{3 a^{2} b^{2} c d^{2} + b^{4} c^{3}} \right )}}{2 a b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________